// 用户相关接口
const {Router} = require('express');
const {student, teacher} = require('../utils/menu');

const router = Router();

router.get('/', (req, res) => {
    res.json({
        code: 1,
        data: req.userInfoLaoGuo.type === '0' ? student : teacher,
        check: req.userInfoLaoGuo.type === '0' ? 'CourseList' : 'Course',
    })
})

module.exports = router;
